<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
require('picasa.class.php');
$user = "";
$pass = '';
$pu = new PicasaUploader($user, $pass);
$albums = $pu->getAlbums();

echo '<h3>ALBUMS LIST</h3><table border="1"><tr><th>id</th><th>name</th><th>date</th></tr>';
$i = 1;
foreach($albums as $album) {
    echo '<tr><td>' . $i . '. '. $album['id'] . '</td><td>' . $album['name'] . ' - ' . $album['numphoto'] . '</td><td>' . date('d/m/Y H:i:s', strtotime($album['pdate'])) . '</td></tr>';
    $i++;
}
echo '</table>';
// $photo = $pu->uploadPhoto('D:/Projects/cicgt/picasa/guide.jpg');
// echo($photo);
die;
